package com.gl.saasservice.repository;

import com.gl.saasservice.entity.MCardWarehouse;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;

import java.util.List;

public interface MCardWarehouseRepository extends PagingAndSortingRepository<MCardWarehouse, Long>, JpaSpecificationExecutor<MCardWarehouse>, JpaRepository<MCardWarehouse,Long> {
   //根据卡号查询
    List<MCardWarehouse> findByCardNumber (String cardNumber);

    //根据卡ID查询
    List<MCardWarehouse> findByCardId (String cardId);
}
